package com.xnchat.pro.dataStructure;

public class Demo {
    public static void main(String[] args) {
        LinkedListStack linkedListStack = new LinkedListStack();
        linkedListStack.push('A');
        linkedListStack.push('B');
        linkedListStack.push('C');
        linkedListStack.push('D');
        while (linkedListStack.peek()!='\0'){
            System.out.println(linkedListStack.pop());
        }
        MyStack<String> stringMyStack = new MyStack<>(10);
        stringMyStack.push("A");
        stringMyStack.push("B");
        stringMyStack.push("C");
        stringMyStack.push("D");
        while (stringMyStack.peek()!=null){
            System.out.println(stringMyStack.pop());
        }
    }
}
